﻿package mortal.common.display
{
    import com.mui.core.*;
    import flash.display.*;
    import flash.geom.*;
    import mortal.game.resource.*;

    public class BitmapDataConst extends Object
    {
        public static const LockedBMD:String = "LockedBMD";
        public static const UsedBMD:String = "UsedBMD";
        public static const NoDurabilityBMD:String = "NoDurabilityBMD";
        public static const HasExpiredBMD:String = "HasExpiredBMD";
        public static const NotMeetCareerBMD:String = "NotMeetCareerBMD";
        public static const FullScreenBg:String = "FullScreenBg";
        public static const AlphaBMD:String = "AlphaBMD";
        public static const BaseMiniBgSmall:String = "BaseMiniBgSmall";

        public function BitmapDataConst()
        {
            return;
        }// end function

        public static function registToGlobal() : void
        {
            GlobalClass.addBitmapData(BitmapDataConst.LockedBMD, new BitmapData(10, 10, true, 2852126720));
            GlobalClass.addBitmapData(BitmapDataConst.UsedBMD, new BitmapData(10, 10, true, 1442775040));
            GlobalClass.addBitmapData(BitmapDataConst.NoDurabilityBMD, new BitmapData(10, 10, true, 1727987712));
            GlobalClass.addBitmapData(BitmapDataConst.HasExpiredBMD, new BitmapData(10, 10, true, 1727987712));
            GlobalClass.addBitmapData(BitmapDataConst.NotMeetCareerBMD, new BitmapData(10, 10, true, 1722417152));
            GlobalClass.addBitmapData(BitmapDataConst.AlphaBMD, new BitmapData(10, 10, true, 16777215));
            GlobalClass.addBitmapData(BitmapDataConst.FullScreenBg, new BitmapData(26, 52, false, 922404));
            var _loc_1:* = GlobalClass.getBitmapData(ImagesConst.BaseMiniBg);
            var _loc_2:* = new BitmapData(208, 250, true, 0);
            _loc_2.draw(_loc_1, new Matrix(1, 0, 0, 1, 0, -100));
            GlobalClass.addBitmapData(BitmapDataConst.BaseMiniBgSmall, _loc_2);
            return;
        }// end function

    }
}
